projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bff7582
)
* alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always.
author
Jan Djärv
<jan.h.d@swipnet.se>
Mon, 9 Dec 2013 08:23:01 +0000
(09:23 +0100)
committer
Jan Djärv
<jan.h.d@swipnet.se>
Mon, 9 Dec 2013 08:23:01 +0000
(09:23 +0100)
src/ChangeLog
patch
|
blob
|
history
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 17ea85d9770ad5eb78e1ebba0d1ea147552fdfe6..938fe600a6c711a015da8a0fa5f4d66128fac08b 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,7
@@
+2013-12-09 Jan Djärv <jan.h.d@swipnet.se>
+
+ * alloc.c (Fmemory_limit): Avoid compiler warning. Return 0 always.
+
2013-12-08 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (updateFrameSize:): Fix GNUStep toolbar not updating.
diff --git
a/src/alloc.c
b/src/alloc.c
index f076075a94f5da486c0dd956ff07d974b6bc8d8a..aeda42637cde8ee5688d55fbe7c0da89191d21d6 100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-6633,7
+6633,12
@@
We divide the value by 1024 to make sure it fits in a Lisp integer. */)
{
Lisp_Object end;
+#ifdef HAVE_NS
+ /* Avoid warning. sbrk has no relation to memory allocated anyway. */
+ XSETINT (end, 0);
+#else
XSETINT (end, (intptr_t) (char *) sbrk (0) / 1024);
+#endif
return end;
}